﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace nLearning.UC
{
    public partial class PDFViewer : UserControl
    {
        public PDFViewer()
        {
            InitializeComponent();
        }
        // = @"D:\E-Books\CentOS_book.pdf"
        private string _pdfPath;

        public string PdfPath
        {
            get { return _pdfPath; }
            set { _pdfPath = value; }
        }

        private void PDFViewer_Load(object sender, EventArgs e)
        {
            axAcroPDF1.LoadFile(PdfPath);
            axAcroPDF1.src = PdfPath;
            axAcroPDF1.setCurrentPage(1);
        }

        void panel1_Click(object sender, EventArgs e)
        {
            Message.Info(PdfPath);
            //throw new NotImplementedException();
        }
    }
}
